package com.home.qh.exception;

public enum KghErrorCode {
    ENS_DATA_ERROR("ERR1001", "Error in validating ENS data."),
    PARTNERSHIP_EXISTS("ERR1002", "The partnership is existing");
	
    private final String description;
    private final String code;

    private KghErrorCode(String code, String description){
        this.code = code;
        this.description = description;
    }

    /* (non-Javadoc)
     * @see java.lang.Enum#toString()
     */
    @Override
    public String toString(){
        return  code;
    }

    /**
     * Gets the description.
     *
     * @return the description
     */
    public String getDescription(){
        return description;
    }


    /**
     * Gets the code.
     *
     * @return the code
     */
    public String getCode(){
        return code;
    }

}
